package behavior.command.receiver;

import behavior.command.MoveObject;

public class ForwardReceiver implements MoveReceiver {

    public ForwardReceiver(MoveObject moveObject) {
        this.moveObject = moveObject;
    }

    private MoveObject moveObject;

    @Override
    public void action() {
        System.out.println("前进");
        moveObject.setAround(moveObject.getAround() + 1);
    }

    @Override
    public MoveObject getMoveObject() {
        return moveObject;
    }


}
